Lua/Client/Character/Functions/GetBonePosition
From JC2-MP Documentation
Returns | Vector3 |
---|---|
Prototype | Character:GetBonePosition(string) |
Description | Returns the position of the bone specified. |
Example
The following draws a circle around the player's head:
function RenderHeadCircle()
local position = LocalPlayer:GetBonePosition("ragdoll_Head")
Render:DrawCircle(position, 0.1, Color.LawnGreen)
end
Events:Subscribe("Render", RenderHeadCircle)
Bones reference
